/**
 * 路由meta对象参数说明
 * meta: {
 *      title:          菜单栏及 tagsView 栏、菜单搜索名称（国际化）
 *      isLink：        是否超链接菜单，开启外链条件，`1、isLink:true 2、链接地址不为空`
 *      isHide：        是否隐藏此路由
 *      isKeepAlive：   是否缓存组件状态
 *      isAffix：       是否固定在 tagsView 栏上
 *      isIframe：      是否内嵌窗口，，开启条件，`1、isIframe:true 2、链接地址不为空`
 *      roles：         当前路由权限标识，取角色管理。控制路由显示、隐藏。超级管理员：admin 普通角色：common
 *      icon：          菜单、tagsView 图标，阿里：加 `iconfont xxx`，fontawesome：加 `fa xxx`
 * }
 */

export const systemRouter = {
    path: '/system',
    name: 'system',
    component: () => import('/@/layout/routerView/parent.vue'),
    redirect: '/system/role',
    meta: {
      title: 'message.router.system',
      isLink: '',
      isHide: false,
      isKeepAlive: true,
      isAffix: false,
      isIframe: false,
      roles: ['admin'],
      icon: 'fa fa-users',
    },
    children: [
      // {
      //   path: '/system/menu',
      //   name: 'systemMenu',
      //   component: () => import('/@/views/system/menu/index.vue'),
      //   meta: {
      //     title: 'message.router.systemMenu',
      //     isLink: '',
      //     isHide: false,
      //     isKeepAlive: true,
      //     isAffix: false,
      //     isIframe: false,
      //     roles: ['admin'],
      //     icon: 'fa fa-users',
      //   },
      // },
      {
        path: '/system/role',
        name: 'systemRole',
        component: () => import('/@/views/system/role/index.vue'),
        meta: {
          title: 'message.router.systemRole',
          isLink: '',
          isHide: false,
          isKeepAlive: true,
          isAffix: false,
          isIframe: false,
          roles: ['admin'],
          icon: 'fa fa-user-plus',
        },
      },
      {
        path: '/system/dept',
        name: 'systemDept',
        component: () => import('/@/views/system/dept/index.vue'),
        meta: {
          title: 'message.router.systemDept',
          isLink: '',
          isHide: false,
          isKeepAlive: true,
          isAffix: false,
          isIframe: false,
          roles: ['admin'],
          icon: 'fa fa-sitemap',
        },
      },
      {
        path: '/system/user',
        name: 'systemUser',
        component: () => import('/@/views/system/user/index.vue'),
        meta: {
          title: 'message.router.systemUser',
          isLink: '',
          isHide: false,
          isKeepAlive: true,
          isAffix: false,
          isIframe: false,
          roles: ['admin'],
          icon: 'fa fa-user',
        },
      },
      {
        path: '/system/deptfile',
        name: 'systemDeptFile',
        component: () => import('/@/views/system/dept/fileUpload.vue'),
        meta: {
          title: 'message.router.systemDeptFile',
          isLink: '',
          isHide: false,
          isKeepAlive: true,
          isAffix: false,
          isIframe: false,
          roles: ['admin'],
          icon: 'fa fa-sitemap',
        },
      },
    ],
  }

